import { uploadFile, postParamsRequest,getRequest} from './request.js'
// 登陆接口
export const requst_post_login = data => postParamsRequest(`/api/user/weChatLogin`, data);

//获取用户信息接口
export const requst_get_getUserInfo = data => getRequest(`/api/user/getUserInfo`, data);
export const requst_post_addPoint = data => postParamsRequest(`/api/user/addpointdetail`, data);
export const requst_post_likePic = data => postParamsRequest(`/api/user/addlikepicrecord`, data);
export const requst_get_likePicRecord = data => getRequest(`/api/user/likepicrecord`, data);
//获取首页图片
export const requst_get_getPicInfo = data => getRequest(`/api/picinfo/getPicInfos`, data);
export const requst_post_delPicInfo = data => postParamsRequest(`/api/picinfo/delFiles`, data);
export const requst_uploadPic = (data ,filePath)=> uploadFile(`/api/picinfo/uploadMediaToWxMp`, data,filePath);
export const requst_post_pareMpArticle = (data)=> postParamsRequest(`/api/picinfo/pareMpArticle`, data);
export const requst_post_saveMpArticleImages = (data)=> postParamsRequest(`/api/picinfo/saveMpArticleImages`, data);

export const requst_get_getConfigInfo = (data)=> getRequest(`/api/config/getConfigInfo`, data);
export const requst_post_setConfigInfo = (data)=> postParamsRequest(`/api/config/setConfigInfo`, data);
